package com.cynthia.system.mapper;

import com.cynthia.system.model.SysRolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 * 角色权限表 Mapper 接口
 * </p>
 *
 * @author cynthia
 * @since 2021-12-15
 */
public interface SysRolePermissionMapper extends BaseMapper<SysRolePermission> {

    @Delete("delete from `sys_role_permission` where role_id=#{roleId}")
    public int  deleteRolePermissionByRoleId(Integer  roleId);
}